package handler

import (
	"net/http"
	"web_server/internal/types"

	"github.com/zeromicro/go-zero/rest/httpx"
	"web_server/internal/svc"
)

func HealthHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		resp := types.HealthResponse{
			Message: "hello",
		}
		httpx.OkJsonCtx(r.Context(), w, resp)
	}
}
